package tool

import (
	"fmt"
	"github.com/PuerkitoBio/goquery"
	"golang.org/x/net/html"
	"os"
)

func ParseHtml(path string) *goquery.Document {
	open, er := os.Open("./static/html/test.html")
	parse, err := html.Parse(open)
	if er != nil || err != nil {
		fmt.Printf("%v\n", er)

		fmt.Printf("%v\n", err)

	}
	return goquery.NewDocumentFromNode(parse)
}
